-- GENERATED SPELL FOR [Eye of Shartuul] --


function spell0_23228(pUnit, Event) --@Dark Glare,n/a--
pUnit:FullCastSpellOnTarget(41936,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23228', 10000, 1)
end

function spell1_23228(pUnit, Event) --@Disruption Ray,n/a--
pUnit:FullCastSpellOnTarget(41550,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23228', 3000, 1)
end

function spell2_23228(pUnit, Event) --@Fel Fireball,n/a--
pUnit:FullCastSpellOnTarget(40633,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23228', 3000, 1)
end

function spell3_23228(pUnit, Event) --@Tongue Lash,n/a--
pUnit:FullCastSpellOnTarget(42002,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23228', 533, 1)
end

function Sorts_23228(pUnit, Event)
local choix_sorts_23228 = math.random(0, 3)
if choix_sorts_23228 == 0 then
pUnit:RegisterEvent('spell0_23228', 1, 1)
end
if choix_sorts_23228 == 1 then
pUnit:RegisterEvent('spell1_23228', 1, 1)
end
if choix_sorts_23228 == 2 then
pUnit:RegisterEvent('spell2_23228', 1, 1)
end
if choix_sorts_23228 == 3 then
pUnit:RegisterEvent('spell3_23228', 1, 1)
end
end

function mob23228_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23228', math.random(1500, 3000), 1)
end

function mob23228_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23228_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23228_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23228, 1, 'mob23228_Action')
RegisterUnitEvent(23228, 2, 'mob23228_Leave')
RegisterUnitEvent(23228, 3, 'mob23228_Kill')
RegisterUnitEvent(23228, 4, 'mob23228_Die')
